# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=wsdd
pkgver=0.7.1
pkgrel=0
pkgdesc="Web Service Discovery host daemon"
url="https://github.com/christgau/wsdd"
arch="noarch"
license="MIT"
depends="python3"
install="$pkgname.pre-install"
pkgusers="wsdd"
pkggroups="wsdd"
subpackages="$pkgname-openrc"
source="https://github.com/christgau/wsdd/archive/refs/tags/v$pkgver/wsdd-$pkgver.tar.gz
	0001-openrc-user.patch
	"
options="!check" # no tests provided

package() {
	install -Dm755 src/wsdd.py "$pkgdir"/usr/bin/wsdd
	install -Dm755 etc/openrc/init.d/wsdd "$pkgdir"/etc/init.d/wsdd
	install -Dm644 etc/openrc/conf.d/wsdd "$pkgdir"/etc/conf.d/wsdd
}

sha512sums="
3d65fd5d5b4bd6ff37409e07301e082ffd2bb5df184cc12730e2cb2d36ebef030c6121b515af9c7eca59562e73414c7da6f7a6cd1b05c3bb27745e402cd7f684  wsdd-0.7.1.tar.gz
4d38d7cf7bcc924f94c52c0aa429b211570655f8207425512f80c75609206a0149464508f817206972e5d90bce144c898a30e8edc92c769f3fbd674e40b98a2f  0001-openrc-user.patch
"
